package com.yyfax.pay.console.service.impl;

import com.yyfax.pay.console.dao.ExceptionRecordDao;
import com.yyfax.pay.console.domain.ExceptionRecordDO;
import com.yyfax.pay.console.service.ExceptionRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ExceptionRecordServiceImpl implements ExceptionRecordService {

    @Resource
    private ExceptionRecordDao exceptionRecordDao;

    @Override
    public int insert(ExceptionRecordDO exceptionRecordDO) {
        if (null == exceptionRecordDO) {
            return -1;
        }
        return exceptionRecordDao.insert(exceptionRecordDO);
    }
}
